package com.qf.fc.controller;


import com.qf.fc.entity.UserLog;
import com.qf.fc.service.UserLogService;
import com.qf.fc.vo.R;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * 用户日志表(UserLog)表控制层
 *
 * @author makejava
 * @since 2024-09-16 22:56:04
 */
@RestController
@RequestMapping("/api/uLog")
@Tag(name="用户操作记录接口")  //knife4j 接口文档
public class UserLogController{
    /**
     * 服务对象
     */
    @Resource
    private UserLogService service;

    @GetMapping("selectLog")
    public R<List<UserLog>> logs(Integer uid){
        return service.queryUid(uid);
    }

}

